Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lowering vectorized pad #3261

Draft
wants to merge 39 commits into
base: main
Choose a base branch
from
Draft

Lowering vectorized pad #3261

wants to merge 39 commits into from

Conversation

jjsjann123
Copy link
Collaborator

smoke test

@jjsjann123
Copy link
Collaborator Author

!build

@jjsjann123
Copy link
Collaborator Author

!build

@@ -1001,6 +1001,94 @@ class CudaKernelGenerator : private kir::ConstIrVisitor {
}

void handle(const TernaryOp* top) final {
// Get vectorization information
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for myself. merge this with LoadStoreOp

@@ -2306,9 +2306,22 @@ void IndexLowering::handle(const PadOp* pad) {

pred = GpuLower::current()->commonScalarMap().hoistScalar(pred, for_loops_);

#if 0
const auto prev_scope = active_scope_;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove commented code and open an issue to track this as alternative for when we needed to lift the ternary into an if statement later.

@jjsjann123
Copy link
Collaborator Author

🥳 for green CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant